//
//  PersonMessageCell.m
//  Sports-Go
//
//  Created by rimi on 16/9/21.
//  Copyright © 2016年 YRL. All rights reserved.
//

#import "PersonMessageCell.h"

@interface PersonMessageCell ()


@end

@implementation PersonMessageCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self.contentView addSubview:self.titleLabel];
       // [self.contentView addSubview:self.textField];
        [self.contentView addSubview:self.xian];
        [self.contentView addSubview:self.resultLabel];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.titleLabel.frame = RzCGRectMake(20, 25, 70, 20);
    self.textField.frame = RzCGRectMake(100, 25, 275, 20);
    
    self.xian.frame = RzCGRectMake(0, 70, 375, 1);
    self.resultLabel.frame = RzCGRectMake(100, 20, 230, 30);
}

#pragma mark -- lazy
- (UILabel *)titleLabel{

    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = [UIFont systemFontOfSize:14];
        _titleLabel.textColor = [UIColor blackColor];
    }
    return _titleLabel;
}

- (UITextField *)textField{

    if (_textField) {
        _textField = [[UITextField alloc] init];
        _textField.backgroundColor = [UIColor redColor];
        _textField.font = [UIFont systemFontOfSize:14];
        _textField.placeholder = @"这是";
    }
    return _textField;
}
- (UILabel *)resultLabel{
    if (!_resultLabel) {
        _resultLabel = [[UILabel alloc] init];
        _resultLabel.font = [UIFont systemFontOfSize:19];
        _resultLabel.textColor = [UIColor lightGrayColor];
        _resultLabel.textAlignment = NSTextAlignmentRight;
    }
    return _resultLabel;
}
- (UIView *)xian{

    if (!_xian) {
        _xian = [[UIView alloc] init];
        _xian.backgroundColor = [UIColor colorWithRed:236/255.0 green:236/255.0 blue:236/255.0 alpha:1];
    }
    return _xian;
}

@end
